/**
 * @Author 韦建韩
 * @Date 2022/5/20
 */
package com.example.devops.Manage;

import java.io.IOException;

public class InstanceHandleManager {

    private String handle;
    private String name;
    public InstanceHandleManager(String handle, String name){
        this.handle = handle;
        this.name = name;
    }
    public void run() throws IOException, InterruptedException {
        Process  p = Runtime.getRuntime().exec("/java/shell/handleInstance.sh" + " "+handle+" "+name);
    p.waitFor();
    }
}
